package com.qf.common;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class Result implements Serializable {

    private Integer code;
    private String message;
    private Object data;

    public Result(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public Result(Integer code,String message,Object data){
        this(code,message);
        this.data = data;
    }
}
